import AccountBackButton from '@theme/views/account/back-button'; import AccountMenu from '@theme/views/account/account-menu'; import ChromeSlot from '@akinon/pz-theme/src/chrome/chrome-slot'; import { PLACEHOLDER_SLUGS } from '@akinon/pz-theme/src/chrome/placeholder-slugs'; import { buildAccountPageContext } from '@akinon/pz-theme/src/chrome/page-context'; import { auth } from 'auth'; import { ROUTES } from 'routes'; import { redirect } from '@akinon/next/utils/redirect'; export default async function AccountLayout({ children }: { children: React.ReactNode; }) { const session = await auth(); if (!session?.user) { return redirect(ROUTES.AUTH); } return ( // Stacked on mobile, two columns on desktop. The brand markup hides // itself on the breakpoints it does not serve, but a COMPOSED menu or // page body has no such classes — in a no-wrap row it would render // crushed next to its sibling on a phone; in a column it stacks.